package practice.dao;

import practice.dao.Computed;

/**
 * @author:雷淑娥
 * @Date:2024/12/9 10:22
 * version:1.0
 */
public class Chu implements Computed {
    @Override
    public int computed(int a, int b) {
        if (b == 0) {
            throw new ArithmeticException("除数不能为0");
        }
        return a / b;
    }
}
